package com.acdc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 物联网模块操作日志对象 iot_module_log
 * 
 * @author acdc
 * @date 2025-08-13
 */
public class IotModuleLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 物联网模块 */
    @Excel(name = "物联网模块")
    private Long iotModuleId;

    /** 操作类别 */
    @Excel(name = "操作类别")
    private String opType;

    /** 数据详情 */
    @Excel(name = "数据详情")
    private String opData;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime opTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setIotModuleId(Long iotModuleId) 
    {
        this.iotModuleId = iotModuleId;
    }

    public Long getIotModuleId() 
    {
        return iotModuleId;
    }

    public void setOpType(String opType) 
    {
        this.opType = opType;
    }

    public String getOpType() 
    {
        return opType;
    }

    public void setOpData(String opData) 
    {
        this.opData = opData;
    }

    public String getOpData() 
    {
        return opData;
    }

    public void setOpTime(LocalDateTime opTime) 
    {
        this.opTime = opTime;
    }

    public LocalDateTime getOpTime() {
        return opTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("iotModuleId", getIotModuleId())
            .append("opType", getOpType())
            .append("opData", getOpData())
            .append("opTime", getOpTime())
            .toString();
    }
}
